package com.easyad.hibernate;

import java.sql.Timestamp;

/**
 * GgrzId entity. @author MyEclipse Persistence Tools
 */

public class GgrzId implements java.io.Serializable {

	// Fields

	private Integer ggbh;
	private Integer ggwbh;
	private Timestamp jlsj;

	// Constructors

	/** default constructor */
	public GgrzId() {
	}

	/** full constructor */
	public GgrzId(Integer ggbh, Integer ggwbh, Timestamp jlsj) {
		this.ggbh = ggbh;
		this.ggwbh = ggwbh;
		this.jlsj = jlsj;
	}

	// Property accessors

	public Integer getGgbh() {
		return this.ggbh;
	}

	public void setGgbh(Integer ggbh) {
		this.ggbh = ggbh;
	}

	public Integer getGgwbh() {
		return this.ggwbh;
	}

	public void setGgwbh(Integer ggwbh) {
		this.ggwbh = ggwbh;
	}

	public Timestamp getJlsj() {
		return this.jlsj;
	}

	public void setJlsj(Timestamp jlsj) {
		this.jlsj = jlsj;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof GgrzId))
			return false;
		GgrzId castOther = (GgrzId) other;

		return ((this.getGgbh() == castOther.getGgbh()) || (this.getGgbh() != null
				&& castOther.getGgbh() != null && this.getGgbh().equals(
				castOther.getGgbh())))
				&& ((this.getGgwbh() == castOther.getGgwbh()) || (this
						.getGgwbh() != null && castOther.getGgwbh() != null && this
						.getGgwbh().equals(castOther.getGgwbh())))
				&& ((this.getJlsj() == castOther.getJlsj()) || (this.getJlsj() != null
						&& castOther.getJlsj() != null && this.getJlsj()
						.equals(castOther.getJlsj())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getGgbh() == null ? 0 : this.getGgbh().hashCode());
		result = 37 * result
				+ (getGgwbh() == null ? 0 : this.getGgwbh().hashCode());
		result = 37 * result
				+ (getJlsj() == null ? 0 : this.getJlsj().hashCode());
		return result;
	}

}